using System;
using System.Collections.Generic;
using System.Text;
using Weazel.Gezel.Simulator.Reference.Profiling;

namespace Weazel.Gezel.Simulator.Reference
{
    class ToggleDisplay : AbstractDisplay
    {
        private Profiler counter;

        public ToggleDisplay(Profiler counter)
        {
            this.counter = counter;
        }

        public override void Show(long generation, StringBuilder buffer)
        {
            if (counter != null)
                buffer.Append(counter.ToggleCount(generation));
            else
                buffer.Append("NA");
        }
    }
}
